package com.user.dao.coupon;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author : Yu
 * @Date 2024/5/19 下午1:05
 */
@Data
public class CreateCoupon {
    private int rId;
    private String title;
    private String description;
    private BigDecimal discount;
    private BigDecimal minimumAmount = new BigDecimal(0);
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
}
